#include "tools.h"
#include "book_list.h"
int main()
{
	IndexLoad();
	while(1)
	{
		system("clear");
		cout << "＊＊＊欢迎使用指针图书馆管理系统＊＊＊" << endl;
		cout << "[1] 超管登录" << endl;
	    cout << "[2] 管理员登录" << endl;
	    cout << "[q] 退出系统" << endl;
	    cout << "请选择:";
		char cmd = getch();
		cout << cmd << endl;
	    switch(cmd)
	    {
	    	case '1':manager_menu();break;
	    	case '2':book_menu();break;
	    	case 'q':return 0;
	    }
	}
	IndexSave();
}

